package org.reos.ReParser;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: cfrn76
 * Date: 04.12.13
 * Time: 15:21
 * To change this template use File | Settings | File Templates.
 */
public class ConfigDataValidator {
    public static boolean validateConfigData(ArrayList<ISection> configData) {
        for (ISection section : configData) {
            if (!section.checkIntegrity()) {
                System.out.println("Validation error. Generation aborted");
                return false;
            }
            if (!section.checkDependency(configData)) {
                System.out.println("Validation error. Generation aborted");
                return false;
            }
            // TODO
        }
        return true;
    }
}
